package com.nakamachizu.collection;

import java.util.Comparator;

import com.nakamachizu.model.LineData;

public class LineDataSort implements Comparator<LineData>{

    public int compare(LineData o1, LineData o2) {
        
        int result = o1.getGuid().compareTo(o2.getGuid());
        if(result == 0){
            if(o1.getEntryDate().after(o2.getEntryDate())){
                result = 1;
            }else{
                result = -1;
            }
        }
        
        return result;
    }

}
